<?php
namespace Common\Model;
use Think\Model\RelationModel;
class BaseModel extends RelationModel{
	public function link($data,$link)	
	{
		if (!is_array($data)) {
			$data = $this->find($data);
		}
		$result = $this->getRelation($data,$link,true);
		return $result;
	}
}